package com.sjh.tomcat.utils;

public class WebUtils {

    public static int parseInt(String strNum, int defalut){
        try {
            return Integer.parseInt(strNum);
        }catch (NumberFormatException e){
            System.out.println(strNum + "不能转成数字");
        }
        return defalut;
    }
}
